home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 32 / CD Expert nº 32.iso / NBA 2000 / NBA2000.exe / CABFILE / IDR_CABFILE / Data / 2DScript / PLAYCALL.UI < prev    next >
Text File  |  1999-05-19  |  13KB  |  478 lines

  1. "2D\Overlays\PlayCall"
  2.  
  3. //********************
  4. //  Data Container
  5. //********************
  6. DataContainer {
  7.     Int "HomeTeamSelection" {
  8.         InitialValue 0;
  9.     };
  10.     Int "VisitorTeamSelection" {
  11.         InitialValue 0;
  12.     };
  13.  
  14.     Int "PlayCallingTeamSelection" {
  15.         RadioGroup "PlayCallingTeamSelection";
  16.         InitialValue 0;
  17.     };
  18.  
  19.     Int "PlayCallingHomeDropPlay1Color" {PlayDropItem "PlayCallingHomePlay1";};
  20.     Int "PlayCallingHomeDropPlay2Color" {PlayDropItem "PlayCallingHomePlay2";};
  21.     Int "PlayCallingHomeDropPlay3Color" {PlayDropItem "PlayCallingHomePlay3";};
  22.     Int "PlayCallingHomeDropPlay4Color" {PlayDropItem "PlayCallingHomePlay4";};
  23.     Int "PlayCallingHomeDropPlay5Color" {PlayDropItem "PlayCallingHomePlay5";};
  24.     Int "PlayCallingAwayDropPlay1Color" {PlayDropItem "PlayCallingAwayPlay1";};
  25.     Int "PlayCallingAwayDropPlay2Color" {PlayDropItem "PlayCallingAwayPlay2";};
  26.     Int "PlayCallingAwayDropPlay3Color" {PlayDropItem "PlayCallingAwayPlay3";};
  27.     Int "PlayCallingAwayDropPlay4Color" {PlayDropItem "PlayCallingAwayPlay4";};
  28.     Int "PlayCallingAwayDropPlay5Color" {PlayDropItem "PlayCallingAwayPlay5";};
  29.  
  30.     DBEBContentProvider "PlayCallingHomePlay1DBEBCP" {
  31.         PlayDropItem "PlayCallingHomePlay1";
  32.         Database "Teams";
  33.         Format {
  34.             String "A" Chicklet;
  35.             String "     ";
  36.             //Enclose the Play ID with special characters that the drop item will recognize.
  37.             String "@";
  38.             String Field "szPlaybookPlayID1";
  39.             String "#";
  40.         };
  41.         InitialValue {
  42.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "HomeTeamSelection";
  43.         };
  44.     };
  45.  
  46.     DBEBContentProvider "PlayCallingHomePlay2DBEBCP" {
  47.         PlayDropItem "PlayCallingHomePlay2";
  48.         Database "Teams";
  49.         Format {
  50.             String "B" Chicklet;
  51.             String "     ";
  52.             //Enclose the Play ID with special characters that the drop item will recognize.
  53.             String "@";
  54.             String Field "szPlaybookPlayID2";
  55.             String "#";
  56.         };
  57.         InitialValue {
  58.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "HomeTeamSelection";
  59.         };
  60.     };
  61.  
  62.     DBEBContentProvider "PlayCallingHomePlay3DBEBCP" {
  63.         PlayDropItem "PlayCallingHomePlay3";
  64.         Database "Teams";
  65.         Format {
  66.             String "C" Chicklet;
  67.             String "     ";
  68.             //Enclose the Play ID with special characters that the drop item will recognize.
  69.             String "@";
  70.             String Field "szPlaybookPlayID3";
  71.             String "#";
  72.         };
  73.         InitialValue {
  74.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "HomeTeamSelection";
  75.         };
  76.     };
  77.  
  78.     DBEBContentProvider "PlayCallingHomePlay4DBEBCP" {
  79.         PlayDropItem "PlayCallingHomePlay4";
  80.         Database "Teams";
  81.         Format {
  82.             String "X" Chicklet;
  83.             String "     ";
  84.             //Enclose the Play ID with special characters that the drop item will recognize.
  85.             String "@";
  86.             String Field "szPlaybookPlayID4";
  87.             String "#";
  88.         };
  89.         InitialValue {
  90.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "HomeTeamSelection";
  91.         };
  92.     };
  93.  
  94.     DBEBContentProvider "PlayCallingHomePlay5DBEBCP" {
  95.         PlayDropItem "PlayCallingHomePlay5";
  96.         Database "Teams";
  97.         Format {
  98.             String "Y" Chicklet;
  99.             String "     ";
  100.             //Enclose the Play ID with special characters that the drop item will recognize.
  101.             String "@";
  102.             String Field "szPlaybookPlayID5";
  103.             String "#";
  104.         };
  105.         InitialValue {
  106.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "HomeTeamSelection";
  107.         };
  108.     };
  109.  
  110.     DBEBContentProvider "PlayCallingAwayPlay1DBEBCP" {
  111.         PlayDropItem "PlayCallingAwayPlay1";
  112.         Database "Teams";
  113.         Format {
  114.             String "A" Chicklet;
  115.             String "     ";
  116.             //Enclose the Play ID with special characters that the drop item will recognize.
  117.             String "@";
  118.             String Field "szPlaybookPlayID1";
  119.             String "#";
  120.         };
  121.         InitialValue {
  122.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "VisitorTeamSelection";
  123.         };
  124.     };
  125.  
  126.     DBEBContentProvider "PlayCallingAwayPlay2DBEBCP" {
  127.         PlayDropItem "PlayCallingAwayPlay2";
  128.         Database "Teams";
  129.         Format {
  130.             String "B" Chicklet;
  131.             String "     ";
  132.             //Enclose the Play ID with special characters that the drop item will recognize.
  133.             String "@";
  134.             String Field "szPlaybookPlayID2";
  135.             String "#";
  136.         };
  137.         InitialValue {
  138.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "VisitorTeamSelection";
  139.         };
  140.     };
  141.  
  142.     DBEBContentProvider "PlayCallingAwayPlay3DBEBCP" {
  143.         PlayDropItem "PlayCallingAwayPlay3";
  144.         Database "Teams";
  145.         Format {
  146.             String "C" Chicklet;
  147.             String "     ";
  148.             //Enclose the Play ID with special characters that the drop item will recognize.
  149.             String "@";
  150.             String Field "szPlaybookPlayID3";
  151.             String "#";
  152.         };
  153.         InitialValue {
  154.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "VisitorTeamSelection";
  155.         };
  156.     };
  157.  
  158.     DBEBContentProvider "PlayCallingAwayPlay4DBEBCP" {
  159.         PlayDropItem "PlayCallingAwayPlay4";
  160.         Database "Teams";
  161.         Format {
  162.             String "X" Chicklet;
  163.             String "     ";
  164.             //Enclose the Play ID with special characters that the drop item will recognize.
  165.             String "@";
  166.             String Field "szPlaybookPlayID4";
  167.             String "#";
  168.         };
  169.         InitialValue {
  170.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "VisitorTeamSelection";
  171.         };
  172.     };
  173.  
  174.     DBEBContentProvider "PlayCallingAwayPlay5DBEBCP" {
  175.         PlayDropItem "PlayCallingAwayPlay5";
  176.         Database "Teams";
  177.         Format {
  178.             String "Y" Chicklet;
  179.             String "     ";
  180.             //Enclose the Play ID with special characters that the drop item will recognize.
  181.             String "@";
  182.             String Field "szPlaybookPlayID5";
  183.             String "#";
  184.         };
  185.         InitialValue {
  186.             Restrict Int Field "szTeamID" Equals 0 LinkedToData "VisitorTeamSelection";
  187.         };
  188.     };
  189. };
  190.  
  191.  
  192. //********************
  193. //  Images
  194. //********************
  195. Image "PlayCallingBackground" {
  196.     Filename "Bckrnd";
  197. };
  198.  
  199.  
  200. //********************
  201. //  Fonts
  202. //********************
  203. Font "PlayCallingListBox" {
  204.     Filename "JessFnt";
  205.     Translate " 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz`,&-'";
  206.     Kerning 1;
  207. };
  208.  
  209.  
  210. //********************
  211. //  Styles
  212. //********************
  213. Style "PlayCallingBackground" {
  214.     Image "PlayCallingBackground";
  215. };
  216.  
  217. Style "PlayCallingDropPlay" {
  218.     Font "PlayCallingListBox";
  219.     Chicklet "PlayCallingPlay";
  220. };
  221.  
  222.  
  223. //********************************
  224. //  Chicklets
  225. //********************************
  226. Chicklet "PlayCallingPlay" {
  227.     Radius 9.65;
  228.  
  229.     //Dummy colors
  230.     Inside Color [8, 8, 8];
  231.     Outside Color [136, 0, 5];
  232.  
  233.     //3Pt Play
  234.     Inside Color [247, 116, 0];
  235.     Outside Color [128, 5, 9];
  236.     //Delay Play
  237.     Inside Color [38, 148, 255];
  238.     Outside Color [27, 0, 117];
  239.     //Iso Play
  240.     Inside Color [102, 0, 167];
  241.     Outside Color [1, 77, 0];
  242.     //Lob Play
  243.     Inside Color [247, 55, 0];
  244.     Outside Color [166, 115, 0];
  245.     //Motion Play
  246.     Inside Color [47, 177, 56];
  247.     Outside Color [20, 76, 24];
  248.     //Post Play
  249.     Inside Color [0, 67, 221];
  250.     Outside Color [21, 0, 90];
  251. };
  252.  
  253.  
  254. //********************************
  255. //  Drop Items
  256. //********************************
  257. PlayDropItem "PlayCallingHomePlay1" {
  258.     Style "PlayCallingDropPlay";
  259.     Database "Playbook";
  260.     
  261.     String "Home Play 1";
  262.  
  263.     Rect [10, 25, 182, 23];
  264.     Highlight Rect [10, 25, 182, 23];
  265.     Position [16, 29];
  266.     Selectable;
  267.  
  268.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID1";};
  269.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID1";};
  270.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingHomeDropPlay1Color";};
  271.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  272. };
  273.  
  274. PlayDropItem "PlayCallingHomePlay2" {
  275.     Style "PlayCallingDropPlay";
  276.     Database "Playbook";
  277.     
  278.     String "Home Play 2";
  279.  
  280.     Rect [10, 52, 182, 23];
  281.     Highlight Rect [10, 52, 182, 23];
  282.     Position [16, 56];
  283.     Selectable;
  284.  
  285.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID2";};
  286.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID2";};
  287.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingHomeDropPlay2Color";};
  288.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  289. };
  290.  
  291. PlayDropItem "PlayCallingHomePlay3" {
  292.     Style "PlayCallingDropPlay";
  293.     Database "Playbook";
  294.     
  295.     String "Home Play 3";
  296.  
  297.     Rect [10, 79, 182, 23];
  298.     Highlight Rect [10, 79, 182, 23];
  299.     Position [16, 83];
  300.     Selectable;
  301.  
  302.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID3";};
  303.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID3";};
  304.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingHomeDropPlay3Color";};
  305.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  306. };
  307.  
  308. PlayDropItem "PlayCallingHomePlay4" {
  309.     Style "PlayCallingDropPlay";
  310.     Database "Playbook";
  311.     
  312.     String "Home Play 4";
  313.  
  314.     Rect [10, 106, 182, 23];
  315.     Highlight Rect [10, 106, 182, 23];
  316.     Position [16, 110];
  317.     Selectable;
  318.  
  319.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID4";};
  320.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID4";};
  321.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingHomeDropPlay4Color";};
  322.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  323. };
  324.  
  325. PlayDropItem "PlayCallingHomePlay5" {
  326.     Style "PlayCallingDropPlay";
  327.     Database "Playbook";
  328.     
  329.     String "Home Play 5";
  330.  
  331.     Rect [10, 133, 182, 23];
  332.     Highlight Rect [10, 133, 182, 23];
  333.     Position [16, 137];
  334.     Selectable;
  335.  
  336.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID5";};
  337.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID5";};
  338.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingHomeDropPlay5Color";};
  339.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  340. };
  341.  
  342. PlayDropItem "PlayCallingAwayPlay1" {
  343.     Style "PlayCallingDropPlay";
  344.     Database "Playbook";
  345.     
  346.     String "Away Play 1";
  347.  
  348.     Rect [10, 25, 182, 23];
  349.     Highlight Rect [10, 25, 182, 23];
  350.     Position [16, 29];
  351.     Selectable;
  352.  
  353.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID1";};
  354.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID1";};
  355.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingAwayDropPlay1Color";};
  356.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  357. };
  358.  
  359. PlayDropItem "PlayCallingAwayPlay2" {
  360.     Style "PlayCallingDropPlay";
  361.     Database "Playbook";
  362.     
  363.     String "Away Play 2";
  364.  
  365.     Rect [10, 52, 182, 23];
  366.     Highlight Rect [10, 52, 182, 23];
  367.     Position [16, 56];
  368.     Selectable;
  369.  
  370.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID2";};
  371.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID2";};
  372.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingAwayDropPlay2Color";};
  373.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  374. };
  375.  
  376. PlayDropItem "PlayCallingAwayPlay3" {
  377.     Style "PlayCallingDropPlay";
  378.     Database "Playbook";
  379.     
  380.     String "Away Play 3";
  381.  
  382.     Rect [10, 79, 182, 23];
  383.     Highlight Rect [10, 79, 182, 23];
  384.     Position [16, 83];
  385.     Selectable;
  386.  
  387.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID3";};
  388.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID3";};
  389.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingAwayDropPlay3Color";};
  390.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  391. };
  392.  
  393. PlayDropItem "PlayCallingAwayPlay4" {
  394.     Style "PlayCallingDropPlay";
  395.     Database "Playbook";
  396.     
  397.     String "Away Play 4";
  398.  
  399.     Rect [10, 106, 182, 23];
  400.     Highlight Rect [10, 106, 182, 23];
  401.     Position [16, 110];
  402.     Selectable;
  403.  
  404.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID4";};
  405.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID4";};
  406.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingAwayDropPlay4Color";};
  407.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  408. };
  409.  
  410. PlayDropItem "PlayCallingAwayPlay5" {
  411.     Style "PlayCallingDropPlay";
  412.     Database "Playbook";
  413.     
  414.     String "Away Play 5";
  415.  
  416.     Rect [10, 133, 182, 23];
  417.     Highlight Rect [10, 133, 182, 23];
  418.     Position [16, 137];
  419.     Selectable;
  420.  
  421.     Pushed Action {SetData "PlayCallingDragPlayID" LinkTo "FieldszPlaybookPlayID5";};
  422.     Pushed Action {SetData "PlayCallingPlayDiagramID" LinkTo "FieldszPlaybookPlayID5";};
  423.     Pushed Action {SetData "PlayCallingDragPlayColor" LinkTo "PlayCallingAwayDropPlay5Color";};
  424.     Pushed Action {Drag PlayDragItem "PlayCallingPlay";};
  425. };
  426.  
  427.  
  428. //********************
  429. //  Groups
  430. //********************
  431. RadioGroup "PlayCallingTeamSelection" {
  432.     Children {
  433.         CheckButton "PlayCallingDummyHome";
  434.         CheckButton "PlayCallingDummyVisitor";
  435.     };
  436. };
  437.  
  438. Group "PlayCallingHomePlays" {
  439.     Children {
  440.         PlayDropItem "PlayCallingHomePlay1";
  441.         PlayDropItem "PlayCallingHomePlay2";
  442.         PlayDropItem "PlayCallingHomePlay3";
  443.         PlayDropItem "PlayCallingHomePlay4";
  444.         PlayDropItem "PlayCallingHomePlay5";
  445.     };
  446. };
  447.  
  448. Group "PlayCallingVisitorPlays" {
  449.     Children {
  450.         PlayDropItem "PlayCallingAwayPlay1";
  451.         PlayDropItem "PlayCallingAwayPlay2";
  452.         PlayDropItem "PlayCallingAwayPlay3";
  453.         PlayDropItem "PlayCallingAwayPlay4";
  454.         PlayDropItem "PlayCallingAwayPlay5";
  455.     };
  456. };
  457.  
  458. MenuGroup "PlayCallingTeamSelection" {
  459.     Position [10, 10];
  460.  
  461.     Children {
  462.         RadioGroup "PlayCallingTeamSelection";
  463.         Group "PlayCallingHomePlays";
  464.         Group "PlayCallingVisitorPlays";
  465.     };
  466. };
  467.  
  468. Group "PlayCalling" {
  469.     Style "PlayCallingBackground";
  470.     Root;
  471. //    Position [10, 300];
  472.     BottomLeft Position [10, -180];
  473.  
  474.     Children {
  475.         MenuGroup "PlayCallingTeamSelection";
  476.     };
  477. };
  478.